package md.mru.transfer.old.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @author sergiu.marin
 * @since 14.04.2014.
 */
@Entity
@Table(name = "tre", schema = "mru")
public class Tre implements Serializable {

    @Id
    @Column(name = "id", unique = true, nullable = false, precision = 10, scale = 0)
    private long id;

    @Column(name = "pid")
    private Long parentId;

    @Column(name = "nme")
    private String name;

    @Column(name = "dsc")
    private String description;

    @Column(name = "fvr")
    private Float position;

    @Column(name = "tre_tpe")
    private Long functionClassification;

    @Column(name = "tel1")
    private String phoneNo1;

    @Column(name = "tel2")
    private String phoneNo2;

    @Column(name = "tel3")
    private String phoneNo3;

    @Column(name = "vld_frm")
    private Date validateFrom;

    @Column(name = "vld_to")
    private Date validateTo;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String nme) {
        this.name = nme;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String dsc) {
        this.description = dsc;
    }

    public Float getPosition() {
        return position;
    }

    public void setPosition(Float fvr) {
        this.position = fvr;
    }

    public Long getFunctionClassification() {
        return functionClassification;
    }

    public void setFunctionClassification(Long functionClassification) {
        this.functionClassification = functionClassification;
    }

    public String getPhoneNo1() {
        return phoneNo1;
    }

    public void setPhoneNo1(String tel1) {
        this.phoneNo1 = tel1;
    }

    public String getPhoneNo2() {
        return phoneNo2;
    }

    public void setPhoneNo2(String tel2) {
        this.phoneNo2 = tel2;
    }

    public String getPhoneNo3() {
        return phoneNo3;
    }

    public void setPhoneNo3(String tel3) {
        this.phoneNo3 = tel3;
    }

    public Date getValidateFrom() {
        return validateFrom;
    }

    public void setValidateFrom(Date vldFrm) {
        this.validateFrom = vldFrm;
    }

    public Date getValidateTo() {
        return validateTo;
    }

    public void setValidateTo(Date vldTo) {
        this.validateTo = vldTo;
    }
}
